<!DOCTYPE html>
<html lang="ch-CN">
<head>
    <meta charset="UTF-8">
    <title>三个数大到小排序</title>
</head>
<style>
    * {
        font-size: 30px;
        text-decoration: none;
    }
</style>
<script>
    while (true) {
        let num_1 = parseFloat(prompt("请输入第一个数！！"))
        let num_2 = parseFloat(prompt("请输入第二个数！！"))
        let num_3 = parseFloat(prompt("请输入第三个数！！"))
        if (isNaN(num_1)
            || isNaN(num_2)
            || isNaN(num_3)
            || num_1 === null
            || num_2 === null
            || num_3 === null) {
            alert("请在输入框内输入数值！！！")
        } else {
            // 当num_1最小时
            if (num_3 > num_1 && num_2 > num_1) {
                if (num_3 > num_2) {
                    document.write(num_3 + ">" + num_2 + ">" + num_1)
                } else {
                    document.write(num_2 + ">" + num_3 + ">" + num_1)
                }
            }
            // num_2最小时
            else if (num_1 > num_2 && num_3 > num_2) {
                if (num_1 < num_3) {
                    document.write(num_3 + ">" + num_1 + ">" + num_2)
                } else {
                    document.write(num_1 + ">" + num_3 + ">" + num_2)
                }
            }
            // num_3最小时
            else {
                if (num_1 > num_2) {
                    document.write(num_1 + ">" + num_2 + ">" + num_3)
                } else {
                    document.write(num_2 + ">" + num_1 + ">" + num_3)
                }
            }
            break
        }
    }
</script>
<body>
</body>
</html>